import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { IBaseEntity } from '../00_base/IBaseEntity';
import { JwtUtils } from '../01_auth/jwt.utils';
import { IBaseService } from '../00_base/IBaseService';
import { JwtService } from '@nestjs/jwt';
import { SysDept } from './entities/dept.entity';
import { DeptController } from './dept.controller';
import { DeptService } from './dept.service';

@Module({
  imports: [TypeOrmModule.forFeature([IBaseEntity, SysDept])],
  controllers: [DeptController],
  providers: [DeptService, JwtService, IBaseService, JwtUtils],
  exports: [DeptService],
})
export class DeptModule {}
